
#ifndef _Engine_H_
#define _Engine_H_

#include "Ship.h"
#include "Graphics/ParticleSystem/ParticleSystem.h"
#include "Graphics/ParticleSystem/ParticleEmitter.h"


class Engine {
  public:
    Engine(Ship *pship);
    ~Engine();

    void accelerate(float how_much, bool afterburn);
    void side_thrust(float how_much);
    void update(void);
    void render(void);

  private:
    Ship *parent_ship;
    bool thrusting, afterburning;

    ParticleSystem *engine_psys;
    ParticleEmitter *engine_emitter;
    ParticleEmitter *afterburner_emitter;
};

#endif

